package wechat.base.snd;

import org.eclipse.xtend.lib.annotations.Accessors;
import org.eclipse.xtext.xbase.lib.Exceptions;
import org.eclipse.xtext.xbase.lib.Pure;
import org.json.JSONObject;

@SuppressWarnings("all")
public class WCMediaInfo {
  @Accessors
  private String type;
  
  @Accessors
  private String media_id;
  
  @Accessors
  private String created_at;
  
  private JSONObject js;
  
  public WCMediaInfo(final String jsonStr) {
    try {
      JSONObject _jSONObject = new JSONObject(jsonStr);
      this.js = _jSONObject;
      this.type = this.js.getString("type");
      this.media_id = this.js.getString("media_id");
      this.created_at = this.js.getString("created_at");
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
  
  @Pure
  public String getType() {
    return this.type;
  }
  
  public void setType(final String type) {
    this.type = type;
  }
  
  @Pure
  public String getMedia_id() {
    return this.media_id;
  }
  
  public void setMedia_id(final String media_id) {
    this.media_id = media_id;
  }
  
  @Pure
  public String getCreated_at() {
    return this.created_at;
  }
  
  public void setCreated_at(final String created_at) {
    this.created_at = created_at;
  }
}
